home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCMania 75
/
PCMania CD75_1.iso
/
hotme5
/
data1.cab
/
Assets_-_hmfxarrows_-_core
/
Assets
/
Hmfx
/
Arrows
/
arrows0001
/
fxitems.xml
< prev
next >
Wrap
Extensible Markup Language
|
1998-11-03
|
3KB
|
101 lines
<?xml version="1.0" standalone="yes"?>
<Items>
<Template>
<Item Type="File" CLASS="Arrow Button" ID="%Filename%">
<Icon SRC="%Filename%"/>
<Description>%ASK:Description:%{Arrow ALT Text}</Description>
<Filename SRC="%Filename%"/>
<SCRIPT LANGUAGE="JScript"><![CDATA[
var src, dest, attr;
src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
function buildpath()
{
if (ActiveDocument.InCurrentProject)
{
dst = Application.ProjectDirectory + "\\images\\arrows\\%Filename%";
attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
}
else
{
dst = ActiveDocument.Path + "\\images\\arrows\\%Filename%";
attr = "images/arrows/%Filename%";
}
}
function dropfxnow()
{
Application.FX.CopyFile(src, dst);
Application.FX.SelectDropPoint();
Application.FX.HTML('<A HREF=\"{Choose URL}\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
Application.FX.ShowDialog('ANCHOR');
}
// First, check if the file is saved
if (ActiveDocument.Path != "")
{
buildpath();
dropfxnow();
}
else
{
ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
if (ans == 1)
{
ActiveDocument.SaveAs();
}
if (ActiveDocument.Path != "") //check again if they did indeed save and name file
{
buildpath();
dropfxnow();
}
}
]]>
</SCRIPT>
</Item>
</Template>
<Item Type="File" CLASS="Arrow Button" ID="downbr2.gif">
<Icon SRC="downbr2.gif"/>
<Description>Down Arrow</Description>
<Filename SRC="downbr2.gif"/>
</Item>
<Item Type="File" CLASS="Arrow Button" ID="leftbr2.gif">
<Icon SRC="leftbr2.gif"/>
<Description>Left Arrow</Description>
<Filename SRC="leftbr2.gif"/>
</Item>
<Item Type="File" CLASS="Arrow Button" ID="rightbr2.gif">
<Icon SRC="rightbr2.gif"/>
<Description>Right Arrow</Description>
<Filename SRC="rightbr2.gif"/>
</Item>
<Item Type="File" CLASS="Arrow Button" ID="upbr2.gif">
<Icon SRC="upbr2.gif"/>
<Description>Up Arrow</Description>
<Filename SRC="upbr2.gif"/>
</Item>
<Item Type="File" CLASS="Arrow Button" ID="downbr2.jpg">
<Icon SRC="downbr2.jpg"/>
<Description>Down Arrow</Description>
<Filename SRC="downbr2.jpg"/>
</Item>
<Item Type="File" CLASS="Arrow Button" ID="leftbr2.jpg">
<Icon SRC="leftbr2.jpg"/>
<Description>Left Arrow</Description>
<Filename SRC="leftbr2.jpg"/>
</Item>
<Item Type="File" CLASS="Arrow Button" ID="rightbr2.jpg">
<Icon SRC="rightbr2.jpg"/>
<Description>Right Arrow</Description>
<Filename SRC="rightbr2.jpg"/>
</Item>
<Item Type="File" CLASS="Arrow Button" ID="upbr2.jpg">
<Icon SRC="upbr2.jpg"/>
<Description>Up Arrow</Description>
<Filename SRC="upbr2.jpg"/>
</Item>
</Items>